﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ChannelJsonConvet
{
    /// <summary>
    /// ChannelNameWnd.xaml 的交互逻辑
    /// </summary>
    public partial class ChannelNameWnd : Window
    {
        public string m_channelName;

        public ChannelNameWnd()
        {
            InitializeComponent();
            m_channelName = "";

        }

        public ChannelNameWnd(string data)
        {
            InitializeComponent();
            m_channelName = data;
            tb_ChannelName.Text = m_channelName;
        }

        private void button_Cancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void button_Save_Click(object sender, RoutedEventArgs e)
        {
            m_channelName = tb_ChannelName.Text;
            this.DialogResult = true;
        }
    }
}
